/* @(#)auth.c
 * Time-stamp: <2008-10-25 18:32:26 root>
 * Copyright 2008 Julian Qian
 * Author: root@localhost.localdomain
 * Version: $Id: auth.c,v 0.0 2008/10/13 05:31:00 root Exp $
 * Keywords: 
 */

#include "common.h"

bool auth_devid(devid_t devid){
	bool ret;
	mutex_lock(gDBQ.mutex);
	gDBQ.auth_devid = devid;
	db_stmt_query(gDBQ.auth_stmt);
	ret = db_stmt_auth(&gDBQ);
	mutex_unlock(gDBQ.mutex);
	return ret;
}


